package com.wu.springcloud.service;

import com.wu.springcloud.fallback.MyFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName HelloService
 * @Author 浮生光
 * @Date 2022/5/31 23:39
 * @Description HelloService
 * @Version 1.0
 */

@FeignClient(name="01-springcloud-service-provider", fallback =
        MyFallback.class)
public interface HelloService {

    @RequestMapping("/service/hello")
    public String hello();
}
